import request from '@/utils/request'

export function saveSupplier(data) {
  return request({
    url: '/api/base/supplier/save',
    method: 'post',
    data
  })
}

export function saveAllSupplier(data) {
  return request({
    url: '/api/base/supplier/save_all',
    method: 'post',
    data
  })
}

export function updateSupplier(data) {
  return request({
    url: '/api/base/supplier/update',
    method: 'post',
    data
  })
}

export function getSupplier(data) {
  return request({
    url: '/api/base/supplier/get',
    method: 'post',
    data
  })
}

export function pageSupplier(data) {
  return request({
    url: '/api/base/supplier/page',
    method: 'post',
    data
  })
}

export function listPreOptions() {
  return request({
    url: '/api/base/supplier/list_pre_options',
    method: 'get'
  })
}
